/*
 * ================================================================== 系统名称：集采二期
 * 子模块名称：异常处理 ------------------------------------------------------------------
 * 创建日期/更新记录 Date Name Reason for change ---------- -----------
 * ----------------------------------------- 2009/08/06 Zhang Yunyong 对系统异常处理优化
 * ------------------------------------------------------------------ (C)
 * Copyright 2009-2012 . All rights reserved.
 */
package cn.sccl.common.exception;

public class GenerateKeyException extends RuntimeException {
    /**
     *
     */
    private static final long serialVersionUID = -286970098003544446L;

    /**
     * 表示此异常是否需要json序列化
     */
    private boolean isJson = false;

    private String[] args = null;


    public GenerateKeyException() {
        super();
    }


    public GenerateKeyException(String msg) {
        super(msg);
    }


    public GenerateKeyException(Throwable cause) {
        super(cause);
    }


    public GenerateKeyException(String msg, String[] args, Throwable cause) {
        super(msg, cause);
        this.args = args;
    }


    public GenerateKeyException(String msg, Throwable cause) {
        super(msg, cause);
    }


    public GenerateKeyException(String msg, String[] args) {
        super(msg);
        this.args = args;
    }


    public GenerateKeyException(boolean isJson) {
        super();
        this.isJson = true;
    }


    public GenerateKeyException(String msg, boolean isJson) {
        super(msg);
        this.isJson = true;
    }


    public GenerateKeyException(Throwable cause, boolean isJson) {
        super(cause);
        this.isJson = true;
    }


    public GenerateKeyException(String msg, String[] args, Throwable cause, boolean isJson) {
        super(msg, cause);
        this.args = args;
        this.isJson = true;
    }


    public GenerateKeyException(String msg, Throwable cause, boolean isJson) {
        super(msg, cause);
        this.isJson = true;
    }


    public GenerateKeyException(String msg, String[] args, boolean isJson) {
        super(msg);
        this.args = args;
        this.isJson = true;
    }


    /**
     * @return the args
     */
    public String[] getArgs() {
        return args;
    }


    /**
     * @return the isJson
     */
    public boolean isJson() {
        return isJson;
    }
}
